package cn.java59;

import java.util.Scanner;

public class Demo14 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("输出基本工资:");
		double num = sc.nextDouble();
		System.out.println("基本工资为:" + num);
		double num1 = num * 0.4;
		double num2 = num * 0.25;
		double num3 = num1 + num2 + num;
		System.out.println("物价津贴:" + num1);
		System.out.println("房租津贴:" + num2);
		System.out.println("实发工资:" + num3);

	}

}
